package com.primforce.respository.feign.impl;

import com.primforce.respository.entity.User;
import com.primforce.respository.feign.UserFeign;
import com.primforce.respository.mapper.UserMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author tangjiakai
 * @Date 2024/12/18 11:22
 * @Description: TODO
 */
@RestController
@RequestMapping(path = "/user/feign")
public class UserFeignImpl implements UserFeign {

    @Resource
    private UserMapper userMapper;

    @Override
    public List<User> userList() {
        return userMapper.selectList(null);
    }
}
